<style lang="less" scoped>
    .technology {
        width: 100%;
        height: auto;
        overflow: hidden;
        text-align: center;
        padding: 8px;
        display: flex;
        .basicmsg {
            display: inline-block;
            span{
                margin-right: 20px;
            }
        }
    }
</style>
<template>
    <div class="technology">
        <!--<div style="position: fixed;bottom: 60px;z-index: 999;transition: all 0.3s;" :style="{ right: updatemsg ? '0px' : '-200px' }">
            <ButtonGroup vertical style="background-color: #fff;border-left: 2px solid blue">
                <Button type="ghost" icon="document" size="large" @click="showupdatemsg">详情</Button>
                <Button type="ghost" icon="close" size="large">取消</Button>
                <Button type="ghost" icon="ios-cloud-upload" size="large">提交</Button>
            </ButtonGroup>
            <div style="width: 200px;height: 200px;background-color: #fff;float: right;border: 1px solid #eee">

            </div>
        </div>-->
        <Modal
            v-model="versionmodel"
            title="版本升级"
            :loading="loading"
            @on-ok="versionOk"
            @on-cancel="versionCancel">
            <Form :model="versionform" label-position="left" :label-width="120">
                <FormItem label="当前版本：" v-if="data.product">
                    {{ data.product.version }}
                </FormItem>
                <FormItem label="升级版本:">
                    <Input v-model="versionform.version"></Input>
                </FormItem>
                <FormItem label="说明:">
                    <Input v-model="versionform.describe" type="textarea"></Input>
                </FormItem>
            </Form>
        </Modal>
        <Row style="width: 100%">
            <Col span="24" style="margin-bottom: 5px">
                <Card style="width:100%;text-align: left;">
                    <div class="basicmsg" v-if="data.product">
                        <span>产品编号:{{ data.product.nub }}</span>
                        <span>名称:{{ data.product.name }}</span>
                        <span>规格:{{ data.product.norm }}</span>
                        <span>颜色:{{ data.product.color }}</span>
                        <span>图号:{{ data.product.version }}</span>
                    </div>
                    <Button type="primary" v-show="role" style="float: right" @click="updateVersion">版本升级</Button>
                </Card>
            </Col>
           <!-- <Col span="6">
                <my-card cardtitle="" :showright="false" icon="compose" cardbtn="修改" @cardrightclick="cardrightclick('basic')">
                    <img src="http://fangzhaomou.gitee.io/jzpage/img/zyt.png" alt="" height="150px">
                    &lt;!&ndash;<elm-table :data="basicdata" :columns="basiccolumns"></elm-table>&ndash;&gt;
                </my-card>
            </Col>-->
            <Col span="24">
                <my-card cardtitle="织造工序：":showright="role" icon="compose" cardbtn="修改" v-if="data.zz" @cardrightclick="cardrightclick('zz')">
                    <elm-table :data="data.zz" :columns="qdcolumns"></elm-table>
                    <elm-table :data="data.zz" :columns="qdpzcolumns"></elm-table>
                </my-card>
            </Col>
            <Col span="24">
            <my-card cardtitle="涂胶工序：":showright="role" icon="compose" cardbtn="修改" v-if="data.tj" @cardrightclick="cardrightclick('tj')">
                <elm-table :data="data.tj" :columns="tjcolumns"></elm-table>
                <elm-table :data="data.tj" :columns="tjpzcolumns"></elm-table>
            </my-card>
            </Col>
            <Col span="24">
                <my-card cardtitle="贴塑工序：":showright="role" icon="compose" cardbtn="修改" v-if="data.ts" @cardrightclick="cardrightclick('ts')">
                    <elm-table :data="data.ts" :columns="tscolumns"></elm-table>
                </my-card>
            </Col>
            <Col span="12">
                <my-card cardtitle="飞毛工序：":showright="role" icon="compose" cardbtn="修改" v-if="data.fm" @cardrightclick="cardrightclick('fm')">
                    <elm-table :data="data.fm" :columns="fmcolumns"></elm-table>
                    <elm-table :data="data.fm" :columns="fmpzcolumns"></elm-table>
                </my-card>
            </Col>
            <Col span="12">
                <my-card cardtitle="分条工序：":showright="role" icon="compose" cardbtn="修改" v-if="data.ft" @cardrightclick="cardrightclick('ft')">
                    <elm-table :data="data.ft" :columns="ftcolumns"></elm-table>
                    <elm-table :data="data.ft" :columns="ftpzcolumns"></elm-table>
                </my-card>
            </Col>
            <Col span="12">
                <my-card cardtitle="背胶工序：":showright="role" icon="compose" cardbtn="修改" v-if="data.bj" @cardrightclick="cardrightclick('bj')">
                    <elm-table :data="data.bj" :columns="bjcolumns"></elm-table>
                    <elm-table :data="data.bj" :columns="bjpzcolumns"></elm-table>
                </my-card>
            </Col>
            <Col span="12">
                <my-card cardtitle="分切工序：":showright="role" icon="compose" cardbtn="修改" v-if="data.fq" @cardrightclick="cardrightclick('fq')">
                    <elm-table :data="data.fq" :columns="fqcolumns"></elm-table>
                    <elm-table :data="data.fq" :columns="fqpzcolumns"></elm-table>
                </my-card>
            </Col>
            <Col span="12">
                <my-card cardtitle="加胶工序：":showright="role" icon="compose" cardbtn="修改" v-if="data.jj" @cardrightclick="cardrightclick('jj')">
                    <elm-table :data="data.jj" :columns="jjcolumns"></elm-table>
                    <elm-table :data="data.jj" :columns="jjpzcolumns"></elm-table>
                </my-card>
            </Col>
            <Col span="12">
                <my-card cardtitle="模切工序：":showright="role" icon="compose" cardbtn="修改" v-if="data.mq" @cardrightclick="cardrightclick('mq')">
                    <elm-table :data="data.mq" :columns="mqcolumns"></elm-table>
                    <elm-table :data="data.mq" :columns="mqpzcolumns"></elm-table>
                </my-card>
            </Col>
            <Col span="12">
                <my-card cardtitle="定型工序：":showright="role" icon="compose" cardbtn="修改" v-if="data.dx" @cardrightclick="cardrightclick('dx')">
                    <elm-table :data="data.dx" :columns="dxcolumns"></elm-table>
                </my-card>
            </Col>
        </Row>
        <Modal
            v-model="zzmodel"
            title="织造工艺修改"
            :loading="loading"
            width="900"
            @on-ok="modelOk('zz')"
            @on-cancel="modelCancel">
            <Row v-if="data.zz">
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                        <span style="margin-left: 20px">
                            工艺参数
                        </span>
                </header>
                <Form ref="zz" :model="form" :label-width="120">
                    <FormItem label="盘头根数：" prop="qd_ptgs">
                        <base-input v-model="form.qd_ptgs" placeholder="请输入盘头根数" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="生产条数：" prop="qd_scts">
                        <base-input v-model="form.qd_scts" placeholder="请输入生产条数" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="排列方式：" prop="qd_plfs">
                        <base-input v-model="form.qd_plfs" placeholder="请输入排列方式" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="扣数：" prop="qd_qs">
                        <base-input v-model="form.qd_ks" placeholder="请输入扣数" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="纬密：" prop="qd_wm">
                        <base-input v-model="form.qd_wm" placeholder="请输入纬密" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="织带速度：" prop="qd_zdsd">
                        <base-input v-model="form.qd_zdsd" placeholder="请输入织带速度" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="纱线规格：" prop="qd_sxgg">
                        <base-input v-model="form.qd_sxgg" placeholder="请输入纱线规格" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="纬线规格：" prop="qd_wxgg">
                        <base-input v-model="form.qd_wxgg" placeholder="请输入纬线规格" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="尺寸：" prop="qd_cc">
                        <base-input v-model="form.qd_cc" placeholder="请输入尺寸" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="毛高：" prop="qd_mg">
                        <base-input v-model="form.qd_mg" placeholder="请输入毛高" width="80%"></base-input>
                    </FormItem>
                </Form>
                </Col>
                <Col :xs="24" :md="12" :sm="24">
                    <header class="example-header">
                                    <span style="margin-left: 20px">
                                        品质要求
                                    </span>
                    </header>
                <Form ref="zzpz" :model="form" :label-width="120">
                    <FormItem label="底板勾毛：" prop="qd_dbgm">
                        <base-input v-model="form.qd_dbgm" placeholder="请输入底板勾毛" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="毛平整度：" prop="qd_mpzd">
                        <base-input v-model="form.qd_mpzd" placeholder="请输入毛平整度" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="疵点：" prop="qd_cd">
                        <base-input v-model="form.qd_cd" placeholder="请输入疵点" width="80%"></base-input>
                    </FormItem>
                </Form>
                </Col>
                <div class="example-split" style="left: 50%"></div>
            </Row>
        </Modal>
        <Modal
            v-model="tjmodel"
            title="涂胶工艺修改"
            :loading="loading"
            width="900"
            @on-ok="modelOk('tj')"
            @on-cancel="modelCancel">
            <Row v-if="data.tj">
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                                            <span style="margin-left: 20px">
                                                工艺参数
                                            </span>
                </header>
                <div style="padding: 0px 20px">
                    <header class="example-header">
                                            <span style="margin-left: 20px;font-size: 12px">
                                                温度
                                            </span>
                    </header>
                    <Form ref="tjwdform" :model="form" :label-width="120">
                        <FormItem label="加热棒1：" prop="tj_jrb1">
                            <base-input v-model="form.tj_jrb1" placeholder="请输入加热棒1温度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="加热棒2：" prop="tj_jrb2">
                            <base-input v-model="form.tj_jrb2" placeholder="请输入加热棒2温度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="加热棒3：" prop="tj_jrb3">
                            <base-input v-model="form.tj_jrb3" placeholder="请输入加热棒3温度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="加热棒4：" prop="tj_jrb4">
                            <base-input v-model="form.tj_jrb4" placeholder="请输入加热棒4温度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="预烘箱1：" prop="tj_yhx1">
                            <base-input v-model="form.tj_yhx1" placeholder="请输入预烘箱1温度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="预烘箱2：" prop="tj_yhx2">
                            <base-input v-model="form.tj_yhx2" placeholder="请输入预烘箱2温度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="大烘箱：" prop="tj_wddhx">
                            <base-input v-model="form.tj_wddhx" placeholder="请输入大烘箱温度" width="80%"></base-input>
                        </FormItem>
                    </Form>
                </div>
                <!--<div style="width: 100%;height: 1px;background-color: #eee"></div>-->
                <div style="margin: 0px 20px;">
                    <header class="example-header">
                                            <span style="margin-left: 20px;font-size: 12px">
                                                一次上胶
                                            </span>
                    </header>
                    <Form ref="tj1form" :model="form" :label-width="120">
                        <FormItem label="胶辊刮刀：" prop="tj_jggd">
                            <base-input v-model="form.tj_jggd" placeholder="请输入胶辊刮刀" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="后刮刀：" prop="tj_hgd">
                            <base-input v-model="form.tj_hgd" placeholder="请输入后刮刀" width="80%"></base-input>
                        </FormItem>
                    </Form>
                    <div style="padding: 0px 40px">
                        <header class="example-header">
                                            <span style="margin-left: 20px;font-size: 10px">
                                                电机频率
                                            </span>
                        </header>
                        <Form ref="tj1djform" :model="form" :label-width="120">
                            <FormItem label="进带：" prop="tj_jd">
                                <base-input v-model="form.tj_jd" placeholder="请输入进带" width="80%"></base-input>
                            </FormItem>
                            <FormItem label="胶辊：" prop="tj_jg">
                                <base-input v-model="form.tj_jg" placeholder="请输入胶辊" width="80%"></base-input>
                            </FormItem>
                            <FormItem label="大烘箱：" prop="tj_dhx">
                                <base-input v-model="form.tj_dhx" placeholder="请输入大烘箱" width="80%"></base-input>
                            </FormItem>
                            <FormItem label="出带：" prop="tj_cd">
                                <base-input v-model="form.tj_cd" placeholder="请输入出带" width="80%"></base-input>
                            </FormItem>
                        </Form>
                    </div>
                </div>
                <div style="margin: 0px 20px;">
                    <header class="example-header">
                                                <span style="margin-left: 20px;font-size: 12px">
                                                    二次上胶
                                                </span>
                    </header>
                    <Form ref="tj2form" :model="form" :label-width="120">
                        <FormItem label="胶辊刮刀：" prop="tj_jggd2">
                            <base-input v-model="form.tj_jggd2" placeholder="请输入胶辊刮刀" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="后刮刀：" prop="tj_hgd2">
                            <base-input v-model="form.tj_hgd2" placeholder="请输入后刮刀" width="80%"></base-input>
                        </FormItem>
                    </Form>
                    <div style="padding: 0px 40px">
                        <header class="example-header">
                                                <span style="margin-left: 20px;font-size: 10px">
                                                    电机频率
                                                </span>
                        </header>
                        <Form ref="tj2djform" :model="form" :label-width="120">
                            <FormItem label="进带：" prop="tj_jd2">
                                <base-input v-model="form.tj_jd2" placeholder="请输入进带" width="80%"></base-input>
                            </FormItem>
                            <FormItem label="胶辊：" prop="tj_jg2">
                                <base-input v-model="form.tj_jg2" placeholder="请输入胶辊" width="80%"></base-input>
                            </FormItem>
                            <FormItem label="大烘箱：" prop="tj_dhx2">
                                <base-input v-model="form.tj_dhx2" placeholder="请输入大烘箱" width="80%"></base-input>
                            </FormItem>
                            <FormItem label="出带：" prop="tj_cd2">
                                <base-input v-model="form.tj_cd2" placeholder="请输入出带" width="80%"></base-input>
                            </FormItem>
                        </Form>
                    </div>
                </div>
                </Col>
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                                        <span style="margin-left: 20px">
                                            品质要求
                                        </span>
                </header>
                <Form ref="tjpzform" :model="form" :label-width="120">
                    <FormItem label="尺寸：" prop="tj_chic">
                        <base-input v-model="form.tj_chic" placeholder="请输入尺寸" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="胶块情况：" prop="tj_jkqk">
                        <base-input v-model="form.tj_jkqk" placeholder="请输入胶块情况" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="烫情况：" prop="tj_tqk">
                        <base-input v-model="form.tj_tqk" placeholder="请输入烫情况" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="绒毛：" prop="tj_rm">
                        <base-input v-model="form.tj_rm" placeholder="请输入绒毛" width="80%"></base-input>
                    </FormItem>
                </Form>
                </Col>
                <div class="example-split" style="left: 50%"></div>
            </Row>
        </Modal>
        <Modal
            v-model="tsmodel"
            title="贴塑工艺修改"
            :loading="loading"
            width="900"
            @on-ok="modelOk('ts')"
            @on-cancel="modelCancel">
            <Row v-if="data.ts">
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                                                <span style="margin-left: 20px">
                                                    工艺参数
                                                </span>
                </header>
                <Form ref="ts1form" :model="form" :label-width="120">
                    <FormItem label="模头前区温度：" prop="ts_mtqqwd">
                        <base-input v-model="form.ts_mtqqwd" placeholder="请输入模头前区温度" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="模头后区温度：" prop="ts_mthqwd">
                        <base-input v-model="form.ts_mthqwd" placeholder="请输入模头后区温度" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="烫带温度：" prop="ts_tdwd">
                        <base-input v-model="form.ts_tdwd" placeholder="请输入烫带温度" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="法兰圈温度：" prop="ts_flqwd">
                        <base-input v-model="form.ts_flqwd" placeholder="请输入法兰圈温度" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="接头加热温度：" prop="ts_jtjrwd">
                        <base-input v-model="form.ts_jtjrwd" placeholder="请输入接头加热温度" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="流道温度：" prop="ts_ldwd">
                        <base-input v-model="form.ts_ldwd" placeholder="请输入流道温度" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="进带牵引速度：" prop="ts_jdqysd">
                        <base-input v-model="form.ts_jdqysd" placeholder="请输入进带牵引速度" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="出带牵引速度：" prop="ts_cdqysd">
                        <base-input v-model="form.ts_cdqysd" placeholder="请输入出带牵引速度" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="水轮牵引速度：" prop="ts_slqysd">
                        <base-input v-model="form.ts_slqysd" placeholder="请输入水轮牵引速度" width="80%"></base-input>
                    </FormItem>
                </Form>
                </Col>
                <Col :xs="24" :md="12" :sm="24">
                    <header class="example-header">
                        <span>
                        </span>
                    </header>
                    <Form ref="ts2form" :model="form" :label-width="120">
                        <FormItem label="螺杆进给速度：" prop="ts_lgjjsd">
                            <base-input v-model="form.ts_lgjjsd" placeholder="请输入螺杆进给速度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="主机转速：" prop="ts_zjzs">
                            <base-input v-model="form.ts_zjzs" placeholder="请输入主机转速" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="主机电流：" prop="ts_zjdl">
                            <base-input v-model="form.ts_zjdl" placeholder="请输入主机电流" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="机筒一区温度：" prop="ts_jtyqwd">
                            <base-input v-model="form.ts_jtyqwd" placeholder="请输入机筒一区温度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="机筒二区温度：" prop="ts_jteqwd">
                            <base-input v-model="form.ts_jteqwd" placeholder="请输入机筒二区温度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="机筒三区温度：" prop="ts_jtsqwd">
                            <base-input v-model="form.ts_jtsqwd" placeholder="请输入机筒三区温度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="机筒四区温度：" prop="ts_jtfqwd">
                            <base-input v-model="form.ts_jtfqwd" placeholder="请输入机筒四区温度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="机筒五区温度：" prop="ts_jtwqwd">
                            <base-input v-model="form.ts_jtwqwd" placeholder="请输入机筒五区温度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="溶温：" prop="ts_rw">
                            <base-input v-model="form.ts_rw" placeholder="请输入溶温" width="80%"></base-input>
                        </FormItem>
                    </Form>
                </Col>
                <div class="example-split" style="left: 50%"></div>
            </Row>
        </Modal>
        <Modal
            v-model="jjmodel"
            title="加胶工艺修改"
            :loading="loading"
            width="900"
            @on-ok="modelOk('jj')"
            @on-cancel="modelCancel">
            <Row v-if="data.jj">
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                                        <span style="margin-left: 20px">
                                            工艺参数
                                        </span>
                </header>
                <Form ref="jjform" :model="form" :label-width="120">
                    <FormItem label="牵引速度：" prop="jj_qysd">
                        <base-input v-model="form.jj_qysd" placeholder="请输入牵引速度" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="牵引,分毛气压：" prop="jj_qyqy">
                        <base-input v-model="form.jj_qyqy" placeholder="请输入牵引,分毛气压" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="压轮气压：" prop="jj_ylqy">
                        <base-input v-model="form.jj_ylqy" placeholder="请输入压轮气压" width="80%"></base-input>
                    </FormItem>
                </Form>
                </Col>
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                                            <span style="margin-left: 20px">
                                                品质要求
                                            </span>
                </header>
                <Form ref="jzpzform" :model="form" :label-width="120">
                    <FormItem label="打弯数：" prop="jj_dws">
                        <base-input v-model="form.jj_dws" placeholder="请输入打弯数要求" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="纺布：" prop="jj_fb">
                        <base-input v-model="form.jj_fb" placeholder="请输入纺布" width="80%"></base-input>
                    </FormItem>
                </Form>
                </Col>
                <div class="example-split" style="left: 50%"></div>
            </Row>
        </Modal>
        <Modal
            v-model="bjmodel"
            title="背胶工艺修改"
            :loading="loading"
            width="900"
            @on-ok="modelOk('bj')"
            @on-cancel="modelCancel">
            <Row v-if="data.bj">
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                    <span style="margin-left: 20px">
                        工艺参数
                    </span>
                </header>
                <Form ref="bjform" :model="form" :label-width="120">
                    <FormItem label="机台：" prop="bj_jt">
                        <base-input v-model="form.bj_jt" placeholder="请输入机台" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="铲梳电机转速：" prop="bj_csdjzs">
                        <base-input v-model="form.bj_csdjzs" placeholder="请输入铲梳电机转速" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="剃毛刀速度：" prop="bj_tmdsd">
                        <base-input v-model="form.bj_tmdsd" placeholder="请输入剃毛刀速度" width="80%"></base-input>
                    </FormItem>
                </Form>
                <div style="padding: 0px 20px">
                    <header class="example-header">
                                            <span style="margin-left: 20px;font-size: 12px">
                                                气动喷涂底涂剂
                                            </span>
                    </header>
                    <Form ref="bjqdform" :model="form" :label-width="120">
                        <FormItem label="气压：" prop="bj_qy">
                            <base-input v-model="form.bj_qy" placeholder="请输入气动喷涂底涂剂气压" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="持续时间：" prop="bj_cxsj">
                            <base-input v-model="form.bj_cxsj" placeholder="请输入气动喷涂底涂剂持续时间" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="间隔时间：" prop="bj_jgsj">
                            <base-input v-model="form.bj_jgsj" placeholder="请输入气动喷涂底涂剂间隔时间" width="80%"></base-input>
                        </FormItem>
                    </Form>
                    <header class="example-header">
                                        <span style="margin-left: 20px;font-size: 12px">
                                            飞毛
                                        </span>
                    </header>
                    <Form ref="bjfmform" :model="form" :label-width="120">
                        <FormItem label="风量大小：" prop="bj_fldx">
                            <base-input v-model="form.bj_fldx" placeholder="请输入飞毛风量大小" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="牵引速度：" prop="bj_qysd">
                            <base-input v-model="form.bj_qysd" placeholder="请输入飞毛牵引速度" width="80%"></base-input>
                        </FormItem>
                    </Form>
                </div>
                </Col>
                <Col :xs="24" :md="12" :sm="24">
                    <header class="example-header">
                        <span style="margin-left: 20px">
                            品质要求
                        </span>
                    </header>
                    <Form ref="bjpzform" :model="form" :label-width="120">
                        <FormItem label="胶带与带子状态：" prop="bj_wz">
                            <base-input v-model="form.bj_wz" placeholder="请输入胶带与带子状态要求" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="剥离力：" prop="bj_bll">
                            <base-input v-model="form.bj_bll" placeholder="请输入剥离力要求" width="80%"></base-input>
                        </FormItem>
                    </Form>
                </Col>
                <div class="example-split" style="left: 50%"></div>
            </Row>
        </Modal>
        <Modal
            v-model="fmmodel"
            title="飞毛工艺修改"
            :loading="loading"
            width="900"
            @on-ok="modelOk('fm')"
            @on-cancel="modelCancel">
            <Row v-if="data.fm">
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                                        <span style="margin-left: 20px">
                                            工艺参数
                                        </span>
                </header>
                <Form ref="fmform" :model="form" :label-width="120">
                    <FormItem label="机台：" prop="fm_jt">
                        <base-input v-model="form.fm_jt" placeholder="请输入机台编号" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="滚刀频率：" prop="fm_gdpl">
                        <base-input v-model="form.fm_gdpl" placeholder="请输入滚刀频率" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="牵引频率：" prop="fm_qypl">
                        <base-input v-model="form.fm_qypl" placeholder="请输入牵引频率" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="条数：" prop="fm_ts">
                        <base-input v-model="form.fm_ts" placeholder="请输入条数" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="步骤：" prop="fm_bz">
                        <base-input v-model="form.fm_bz" placeholder="请输入步骤" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="铲梳电机转速：" prop="fm_csdjzs">
                        <base-input v-model="form.fm_csdjzs" placeholder="请输入铲梳电机转速" width="80%"></base-input>
                    </FormItem>
                </Form>
                </Col>
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                                        <span style="margin-left: 20px">
                                            品质要求
                                        </span>
                </header>
                <Form ref="fmpzform" :model="form" :label-width="120">
                    <FormItem label="毛高：" prop="fm_mg">
                        <base-input v-model="form.fm_mg" placeholder="请输入毛高" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="二毛：" prop="fm_em">
                        <base-input v-model="form.fm_em" placeholder="请输入二毛" width="80%"></base-input>
                    </FormItem>
                </Form>
                </Col>
                <div class="example-split" style="left: 50%"></div>
            </Row>
        </Modal>
        <Modal
            v-model="ftmodel"
            title="分条工艺修改"
            :loading="loading"
            width="900"
            @on-ok="modelOk('ft')"
            @on-cancel="modelCancel">
            <Row v-if="data.ft">
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                                        <span style="margin-left: 20px">
                                            工艺参数
                                        </span>
                </header>
                <Form ref="ftform" :model="form" :label-width="120">
                    <FormItem label="机台：" prop="ft_jt">
                        <base-input v-model="form.ft_jt" placeholder="请输入机台编号" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="刀架：" prop="ft_dj">
                        <base-input v-model="form.ft_dj" placeholder="请输入刀架" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="牵引滚筒：" prop="ft_qygt">
                        <base-input v-model="form.ft_qygt" placeholder="请输入牵引滚筒" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="车速：" prop="ft_cs">
                        <base-input v-model="form.ft_cs" placeholder="请输入车速" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="尺寸：" prop="ft_cc">
                        <base-input v-model="form.ft_cc" placeholder="请输入尺寸" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="毛高：" prop="ft_mg">
                        <base-input v-model="form.ft_mg" placeholder="请输入毛高" width="80%"></base-input>
                    </FormItem>
                </Form>
                </Col>
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                                        <span style="margin-left: 20px">
                                            品质要求
                                        </span>
                </header>
                <Form ref="formpz" :model="form" :label-width="120">
                    <FormItem label="尺寸：" prop="ftpzcc">
                        <base-input v-model="form.ft_pzcc" placeholder="请输入尺寸" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="毛高：" prop="ft_pzmg">
                        <base-input v-model="form.ft_pzmg" placeholder="请输入毛高" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="偏条：" prop="ft_pzpt">
                        <base-input v-model="form.ft_pzpt" placeholder="请输入偏条" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="底板：" prop="ft_pzdb">
                        <base-input v-model="form.ft_pzdb" placeholder="请输入底板" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="绒毛：" prop="ft_pzrm">
                        <base-input v-model="form.ft_pzrm" placeholder="请输入绒毛" width="80%"></base-input>
                    </FormItem>
                </Form>
                </Col>
                <div class="example-split" style="left: 50%"></div>
            </Row>
        </Modal>
        <Modal
            v-model="fqmodel"
            title="分切工艺修改"
            :loading="loading"
            width="900"
            @on-ok="modelOk('fq')"
            @on-cancel="modelCancel">
            <Row v-if="data.fq">
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                                        <span style="margin-left: 20px">
                                            工艺参数
                                        </span>
                </header>
                <Form ref="fqform" :model="form" :label-width="120">
                    <FormItem label="机台：" prop="fq_jt">
                        <base-input v-model="form.fq_jt" placeholder="请输入机台编号" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="车速：" prop="fq_cs">
                        <base-input v-model="form.fq_cs" placeholder="请输入车速" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="长度设置：" prop="fq_cdsz">
                        <base-input v-model="form.fq_cdsz" placeholder="请输入长度" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="分切条数：" prop="fq_fqts">
                        <base-input v-model="form.fq_fqts" placeholder="请输入分切条数" width="80%"></base-input>
                    </FormItem>
                </Form>
                </Col>
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                                        <span style="margin-left: 20px">
                                            品质要求
                                        </span>
                </header>
                <Form ref="formfq" :model="form" :label-width="120">
                    <FormItem label="长度：" prop="fq_pzcd">
                        <base-input v-model="form.fq_pzcd" placeholder="请输入长度" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="断头绒毛：" prop="fq_pzdtrm">
                        <base-input v-model="form.fq_pzdtrm" placeholder="请输入断头绒毛" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="烂毛：" prop="fq_pzlm">
                        <base-input v-model="form.fq_pzlm" placeholder="请输入烂毛" width="80%"></base-input>
                    </FormItem>
                </Form>
                </Col>
                <div class="example-split" style="left: 50%"></div>
            </Row>
        </Modal>
        <Modal
            v-model="mqmodel"
            title="模切工艺修改"
            :loading="loading"
            width="900"
            @on-ok="modelOk('mq')"
            @on-cancel="modelCancel">
            <Row v-if="data.mq">
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                                        <span style="margin-left: 20px">
                                            工艺参数
                                        </span>
                </header>
                <Form ref="mqform" :model="form" :label-width="120">
                    <FormItem label="速度：" prop="mq_sd">
                        <base-input v-model="form.mq_sd" placeholder="请输入速度" width="80%"></base-input>
                    </FormItem>
                </Form>
                </Col>
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                                        <span style="margin-left: 20px">
                                            品质要求
                                        </span>
                </header>
                <Form ref="formpz" :model="form" :label-width="120">
                    <FormItem label="胶带：" prop="mq_jd">
                        <base-input v-model="form.mq_jd" placeholder="请输入胶带要求" width="80%"></base-input>
                    </FormItem>
                    <FormItem label="带子：" prop="mq_dz">
                        <base-input v-model="form.mq_dz" placeholder="请输入带子要求" width="80%"></base-input>
                    </FormItem>
                </Form>
                </Col>
                <div class="example-split" style="left: 50%"></div>
            </Row>
        </Modal>
        <Modal
            v-model="dxmodel"
            title="定型工艺修改"
            :loading="loading"
            width="900"
            @on-ok="modelOk('dx')"
            @on-cancel="modelCancel">
            <Row v-if="data.dx">
                <Col :xs="24" :md="12" :sm="24">
                <header class="example-header">
                            <span style="margin-left: 20px">
                                工艺参数
                            </span>
                </header>
                <Form ref="dxform" :model="form" :label-width="120">
                    <FormItem label="条数：" prop="dx_ts">
                        <base-input v-model="form.dx_ts" placeholder="请输入条数" width="80%"></base-input>
                    </FormItem>
                </Form>
                <div style="padding: 0px 20px">
                    <header class="example-header">
                                        <span style="margin-left: 20px;font-size: 12px">
                                            加热板A
                                        </span>
                    </header>
                    <Form ref="formjrb" :model="form" :label-width="120">
                        <FormItem label="启动：" prop="dx_jrbaqd">
                            <base-input v-model="form.dx_jrbaqd" placeholder="请输入加热板A启动" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="停止：" prop="dx_jrbatz">
                            <base-input v-model="form.dx_jrbatz" placeholder="请输入加热板A停止" width="80%"></base-input>
                        </FormItem>
                    </Form>
                    <header class="example-header">
                                        <span style="margin-left: 20px;font-size: 12px">
                                            定型板A
                                        </span>
                    </header>
                    <Form ref="formdxb" :model="form" :label-width="120">
                        <FormItem label="启动：" prop="dx_dxbaqd">
                            <base-input v-model="form.dx_dxbaqd" placeholder="请输入定型板A启动" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="停止：" prop="dx_dxbatz">
                            <base-input v-model="form.dx_dxbatz" placeholder="请输入定型板A停止" width="80%"></base-input>
                        </FormItem>
                    </Form>
                    <header class="example-header">
                                        <span style="margin-left: 20px;font-size: 12px">
                                            牵引电机A
                                        </span>
                    </header>
                    <Form ref="formqydj" :model="form" :label-width="120">
                        <FormItem label="速度：" prop="dx_qydjasd">
                            <base-input v-model="form.dx_qydjasd" placeholder="请输入牵引电机A速度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="长度：" prop="dx_qydjacd">
                            <base-input v-model="form.dx_qydjacd" placeholder="请输入牵引电机A长度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="加速度：" prop="dx_qydjajsd">
                            <base-input v-model="form.dx_qydjajsd" placeholder="请输入牵引电机A加速度" width="80%"></base-input>
                        </FormItem>
                    </Form>
                </div>
                </Col>
                <Col :xs="24" :md="12" :sm="24">
                    <header class="example-header">
                            <span style="margin-left: 20px">
                            </span>
                    </header>
                    <header class="example-header">
                                            <span style="margin-left: 20px;font-size: 12px">
                                                加热板B
                                            </span>
                    </header>
                    <Form ref="formjrb" :model="form" :label-width="120">
                        <FormItem label="启动：" prop="dx_jrbbqd">
                            <base-input v-model="form.dx_jrbbqd" placeholder="请输入加热板B启动" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="停止：" prop="dx_jrbbtz">
                            <base-input v-model="form.dx_jrbbtz" placeholder="请输入加热板B停止" width="80%"></base-input>
                        </FormItem>
                    </Form>
                    <header class="example-header">
                                            <span style="margin-left: 20px;font-size: 12px">
                                                定型板B
                                            </span>
                    </header>
                    <Form ref="formdxb" :model="form" :label-width="120">
                        <FormItem label="启动：" prop="dx_dxbbqd">
                            <base-input v-model="form.dx_dxbbqd" placeholder="请输入定型板B启动" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="停止：" prop="dx_dxbbtz">
                            <base-input v-model="form.dx_dxbbtz" placeholder="请输入定型板B停止" width="80%"></base-input>
                        </FormItem>
                    </Form>
                    <header class="example-header">
                                            <span style="margin-left: 20px;font-size: 12px">
                                                牵引电机B
                                            </span>
                    </header>
                    <Form ref="formqydj" :model="form" :label-width="120">
                        <FormItem label="速度：" prop="dx_qydjbsd">
                            <base-input v-model="form.dx_qydjbsd" placeholder="请输入牵引电机B速度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="长度：" prop="dx_qydjbcd">
                            <base-input v-model="form.dx_qydjbcd" placeholder="请输入牵引电机B长度" width="80%"></base-input>
                        </FormItem>
                        <FormItem label="加速度：" prop="dx_qydjbjsd">
                            <base-input v-model="form.dx_qydjbjsd" placeholder="请输入牵引电机B加速度" width="80%"></base-input>
                        </FormItem>
                    </Form>
                </Col>
                <div class="example-split" style="left: 50%"></div>
            </Row>
        </Modal>
    </div>
</template>
<script>
    import MyCard from '../components/myCard.vue'
    import ElmTable from '../components/elmTable.vue'
    export default {
        data () {
            return {
                role: false,
                updatemsg: false,
                id: null,
                swiperOption: {
                    //direction: 'vertical',
                    slidesPerView: 'auto',
                    freeMode: true,
                    scrollbar: {
                        el: '.swiper-scrollbar'
                    },
                    mousewheel: true
                },
                basiccolumns: [
                    {
                        label: '产品编号',
                        prop: 'nub'
                    },
                    {
                        label: '产品规格',
                        prop: 'norm'
                    },
                    {
                        label: '版本号',
                        prop: 'version'
                    }
                ],
                data: [],
                basicdata: [
                    {
                        nub: 'CP0251x14447x144',
                        norm: '15.2x454x140x54',
                        version: '1.21'
                    }
                ],
                qdcolumns: [
                    {
                        label: '盘头根数',
                        prop: 'qd_ptgs'
                    },
                    {
                        label: '生产条数',
                        prop: 'qd_scts'
                    },
                    {
                        label: '排列方式',
                        prop: 'qd_plfs'
                    },
                    {
                        label: '扣数',
                        prop: 'qd_ks'
                    },
                    {
                        label: '纬密',
                        prop: 'qd_wm'
                    },
                    {
                        label: '织带速度',
                        prop: 'qd_zdsd'
                    },
                    {
                        label: '纱线规格',
                        prop: 'qd_sxgg'
                    },
                    {
                        label: '纬线规格',
                        prop: 'qd_wxgg'
                    },
                    {
                        label: '尺寸',
                        prop: 'qd_cc'
                    },
                    {
                        label: '毛高',
                        prop: 'qd_mg'
                    }
                ],
                qdpzcolumns: [
                    {
                        label: '底板勾毛',
                        prop: 'qd_dbgm'
                    },
                    {
                        label: '毛平整度',
                        prop: 'qd_mpzd'
                    },
                    {
                        label: '疵点',
                        prop: 'qd_cd'
                    }
                ],
                tjcolumns: [
                    {
                        label: '温度',
                        children: [
                            {
                                label: '加热棒1',
                                prop: 'tj_jrb1'
                            },
                            {
                                label: '加热棒2',
                                prop: 'tj_jrb2'
                            },
                            {
                                label: '加热棒3',
                                prop: 'tj_jrb3'
                            },
                            {
                                label: '加热棒4',
                                prop: 'tj_jrb4'
                            },
                            {
                                label: '预烘箱1',
                                prop: 'tj_yhx1'
                            },
                            {
                                label: '预烘箱2',
                                prop: 'tj_yhx2'
                            },
                            {
                                label: '大烘箱',
                                prop: 'tj_wddhx'
                            }
                        ]
                    },
                    {
                        label: '一次上胶',
                        children: [
                            {
                                label: '电机频率',
                                children: [
                                    {
                                        label: '进带',
                                        prop: 'tj_jd'
                                    },
                                    {
                                        label: '胶棍',
                                        prop: 'tj_jg'
                                    },
                                    {
                                        label: '大烘箱',
                                        prop: 'tj_dhx'
                                    },
                                    {
                                        label: '出带',
                                        prop: 'tj_cd'
                                    }
                                ]
                            },
                            {
                                label: '胶棍刮刀',
                                prop: 'tj_jggd'
                            },
                            {
                                label: '后刮刀',
                                prop: 'tj_hgd'
                            }
                        ]
                    },
                    {
                        label: '二次上胶',
                        children: [
                            {
                                label: '电机频率',
                                prop: '',
                                children: [
                                    {
                                        label: '进带',
                                        prop: 'tj_jd2'
                                    },
                                    {
                                        label: '胶棍',
                                        prop: 'tj_jg2'
                                    },
                                    {
                                        label: '大烘箱',
                                        prop: 'tj_dhx2'
                                    },
                                    {
                                        label: '出带',
                                        prop: 'tj_cd2'
                                    }
                                ]
                            },
                            {
                                label: '胶棍刮刀',
                                prop: 'tj_jggd2'
                            },
                            {
                                label: '后刮刀',
                                prop: 'tj_hgd2'
                            }
                        ]
                    }
                ],
                tjpzcolumns: [
                    {
                        label: '尺寸',
                        prop: 'tj_chic'
                    },
                    {
                        label: '胶块情况',
                        prop: 'tj_jkqk'
                    },
                    {
                        label: '烫情况',
                        prop: 'tj_tqk'
                    },
                    {
                        label: '绒毛',
                        prop: 'tj_rm'
                    }
                ],
                fmcolumns: [
                    {
                        label: '机台',
                        prop: 'fm_jt'
                    },
                    {
                        label: '滚刀频率',
                        prop: 'fm_gdpl'
                    },
                    {
                        label: '牵引频率',
                        prop: 'fm_qypl'
                    },
                    {
                        label: '条数',
                        prop: 'fm_ts'
                    },
                    {
                        label: '步骤',
                        prop: 'fm_bz'
                    },
                    {
                        label: '铲梳电机转速',
                        prop: 'fm_csdjzs'
                    }
                ],
                fmpzcolumns: [
                    {
                        label: '毛高',
                        prop: 'fm_mg'
                    },
                    {
                        label: '二毛',
                        prop: 'fm_em'
                    }
                ],
                tscolumns: [
                    {
                        label: '模头前区温度',
                        prop: 'ts_mtqqwd'
                    },
                    {
                        label: '模头后区温度',
                        prop: 'ts_mthqwd'
                    },
                    {
                        label: '烫带温度',
                        prop: 'ts_tdwd'
                    },
                    {
                        label: '法兰圈温度',
                        prop: 'ts_flqwd'
                    },
                    {
                        label: '接头加热温度',
                        prop: 'ts_jtjrwd'
                    },
                    {
                        label: '流道温度',
                        prop: 'ts_ldwd'
                    },
                    {
                        label: '进带牵引速度',
                        prop: 'ts_jdqysd'
                    },
                    {
                        label: '出带牵引速度',
                        prop: 'ts_cdqysd'
                    },
                    {
                        label: '水轮牵引速度',
                        prop: 'ts_slqysd'
                    },
                    {
                        label: '螺杆进给速度',
                        prop: 'ts_lgjjsd'
                    },
                    {
                        label: '主机转速',
                        prop: 'ts_zjzs'
                    },
                    {
                        label: '主机电流',
                        prop: 'ts_zjdl'
                    },
                    {
                        label: '机筒一区温度',
                        prop: 'ts_jtyqwd'
                    },
                    {
                        label: '机筒二区温度',
                        prop: 'ts_jteqwd'
                    },
                    {
                        label: '机筒三区温度',
                        prop: 'ts_jtsqwd'
                    },
                    {
                        label: '机筒四区温度',
                        prop: 'ts_jtfqwd'
                    },
                    {
                        label: '机筒五区温度',
                        prop: 'ts_jtwqwd'
                    },
                    {
                        label: '溶温',
                        prop: 'ts_rw'
                    }
                ],
                ftcolumns: [
                    {
                        label: '机台',
                        prop: 'ft_jt'
                    },
                    {
                        label: '刀架',
                        prop: 'ft_dj'
                    },
                    {
                        label: '牵引滚筒',
                        prop: 'ft_qygt'
                    },
                    {
                        label: '车速',
                        prop: 'ft_cs'
                    },
                    {
                        label: '尺寸',
                        prop: 'ft_cc'
                    },
                    {
                        label: '毛高',
                        prop: 'ft_mg'
                    }
                ],
                ftpzcolumns: [
                    {
                        label: '尺寸',
                        prop: 'ft_pzcc'
                    },
                    {
                        label: '毛高',
                        prop: 'ft_pzmg'
                    },
                    {
                        label: '偏条',
                        prop: 'ft_pzpt'
                    },
                    {
                        label: '底板',
                        prop: 'ft_pzdb'
                    },
                    {
                        label: '绒毛',
                        prop: 'ft_pzrm'
                    }
                ],
                bjcolumns: [
                    {
                        label: '机台',
                        prop: 'bj_jt'
                    },
                    {
                        label: '气动喷涂底涂剂',
                        children: [
                            {
                                label: '气压',
                                prop: 'bj_qy'
                            },
                            {
                                label: '持续时间',
                                prop: 'bj_cxsj'
                            },
                            {
                                label: '间隔时间',
                                prop: 'bj_jgsj'
                            }
                        ]
                    },
                    {
                        label: '飞毛',
                        children: [
                            {
                                label: '风量大小',
                                prop: 'bj_fldx'
                            },
                            {
                                label: '牵引速度',
                                prop: 'bj_qysd'
                            }
                        ]
                    },
                    {
                        label: '铲梳电机转速',
                        prop: 'bj_csdjzs'
                    },
                    {
                        label: '剃毛刀速度',
                        prop: 'bj_tmdsd'
                    }
                ],
                bjpzcolumns: [
                    {
                        label: '胶带与带子状态',
                        prop: 'bj_wz'
                    },
                    {
                        label: '剥离力',
                        prop: 'bj_bll'
                    }
                ],
                fqcolumns: [
                    {
                        label: '机台',
                        prop: 'fq_jt'
                    },
                    {
                        label: '车速',
                        prop: 'fq_cs'
                    },
                    {
                        label: '长度设置',
                        prop: 'fq_cdsz'
                    },
                    {
                        label: '分切条数',
                        prop: 'fq_fqts'
                    }
                ],
                fqpzcolumns: [
                    {
                        label: '长度',
                        prop: 'fq_pzcd'
                    },
                    {
                        label: '断头绒毛',
                        prop: 'fq_pzdtrm'
                    },
                    {
                        label: '烂毛',
                        prop: 'fq_pzlm'
                    }
                ],
                mqcolumns: [
                    {
                        label: '速度',
                        prop: 'mq_sd'
                    }
                ],
                mqpzcolumns: [
                    {
                        label: '胶带',
                        prop: 'mq_jd'
                    },
                    {
                        label: '带子',
                        prop: 'mq_dz'
                    }
                ],
                jjcolumns: [
                    {
                        label: '牵引速度',
                        prop: 'jj_qysd'
                    },
                    {
                        label: '牵引,分毛气压',
                        prop: 'jj_qyqy'
                    },
                    {
                        label: '压轮气压',
                        prop: 'jj_ylqy'
                    }
                ],
                jjpzcolumns: [
                    {
                        label: '打弯数',
                        prop: 'jj_dws'
                    },
                    {
                        label: '纺布',
                        prop: 'jj_fb'
                    }
                ],
                dxcolumns: [
                    {
                        label: '条数',
                        prop: 'dx_ts'
                    },
                    {
                        label: '加热板A',
                        children: [
                            {
                                label: '启动',
                                prop: 'dx_jrbaqd'
                            },
                            {
                                label: '停止',
                                prop: 'dx_jrbatz'
                            }
                        ]
                    },
                    {
                        label: '定型板A',
                        children: [
                            {
                                label: '启动',
                                prop: 'dx_dxbaqd'
                            },
                            {
                                label: '停止',
                                prop: 'dx_dxbatz'
                            }
                        ]
                    },
                    {
                        label: '牵引电机A',
                        children: [
                            {
                                label: '速度',
                                prop: 'dx_qydjasd'
                            },
                            {
                                label: '长度',
                                prop: 'dx_qydjacd'
                            },
                            {
                                label: '加速度',
                                prop: 'dx_qydjajsd'
                            }
                        ]
                    },
                    {
                        label: '加热板B',
                        children: [
                            {
                                label: '启动',
                                prop: 'dx_jrbbqd'
                            },
                            {
                                label: '停止',
                                prop: 'dx_jrbbtz'
                            }
                        ]
                    },
                    {
                        label: '定型板B',
                        children: [
                            {
                                label: '启动',
                                prop: 'dx_dxbbqd'
                            },
                            {
                                label: '停止',
                                prop: 'dx_dxbbtz'
                            }
                        ]
                    },
                    {
                        label: '牵引电机B',
                        children: [
                            {
                                label: '速度',
                                prop: 'dx_qydjbsd'
                            },
                            {
                                label: '长度',
                                prop: 'dx_qydjbcd'
                            },
                            {
                                label: '加速度',
                                prop: 'dx_qydjbjsd'
                            }
                        ]
                    }
                ],
                /* --------------- */
                versionmodel: false,
                versionform: {
                    version: '',
                    describe: ''
                },
                loading: true,
                form: {},
                zzmodel: false,
                tjmodel: false,
                tsmodel: false,
                jjmodel: false,
                bjmodel: false,
                fmmodel: false,
                ftmodel: false,
                fqmodel: false,
                mqmodel: false,
                dxmodel: false
            }
        },
        name: 'technology',
        watch: {
            '$store.state.role': {
                handler: function (val, oldVal) {
                    this.role = this._.find(val, function(chr) {
                        return chr == '31'
                    }) ? true : false
                },
                deep: true
            }
        },
        methods: {
            showupdatemsg () {
                this.updatemsg = !this.updatemsg
            },
            cardrightclick (value) {
                switch (value) {
                    case 'basic':
                        console.log('basic')
                        break;
                    case 'zz':
                        this.form = this.data.zz[0]
                        this.zzmodel = true
                        break;
                    case 'tj':
                        this.form = this.data.tj[0]
                        this.tjmodel = true
                        break;
                    case 'ts':
                        this.form = this.data.ts[0]
                        this.tsmodel = true
                        break;
                    case 'jj':
                        this.form = this.data.jj[0]
                        this.jjmodel = true
                        break;
                    case 'bj':
                        this.form = this.data.bj[0]
                        this.bjmodel = true
                        break;
                    case 'fm':
                        this.form = this.data.fm[0]
                        this.fmmodel = true
                        break;
                    case 'ft':
                        this.form = this.data.ft[0]
                        this.ftmodel = true
                        break;
                    case 'fq':
                        this.form = this.data.fq[0]
                        this.fqmodel = true
                        break;
                    case 'mq':
                        this.form = this.data.mq[0]
                        this.mqmodel = true
                        break;
                    case 'dx':
                        this.form = this.data.dx[0]
                        this.dxmodel = true
                        break;
                }
            },
            modelOk (name) {
                //this.form.id = this.$route.params.id
                this.http.updateGongYi(this, this.form, name)
            },
            modelCancel () {
            },
            versionOk () {
                this.versionform.id = this.$route.params.id
                this.http.updateVersion(this, this.versionform)
            },
            versionCancel () {
            },
            updateVersion () {
                this.versionmodel = true
            }
        },
        components: {
            MyCard,
            ElmTable
        },
        activated: function () {
            if (this.id != null && this.id != this.$route.params.id) {
                console.log('重新请求')
                this.http.getAllGY(this, {id: this.$route.params.id})
            }
        },
        mounted: function () {
            this.http.getAllGY(this, {id: this.$route.params.id})
            this.role = this._.find(this.$store.state.role, function(chr) {
                return chr == '31'
            }) ? true : false
        }
    };
</script>
